package com.edol.painting.painting;

import android.graphics.Bitmap;

public class KeyFrame {
	
	public int mKeyFrameId;
	public int mActionId;
	public int mRouteId;
	public int mBrushType;
	public int mBrushWidth;
	public int mBrushColor;
	public int mBrushAlpha;
	
	public Bitmap mBitmap;
	public boolean mSaved;
	public boolean mSaving;
	public boolean mLoading;
	
	@Override
	public String toString() {
		return String.format("[0x%x, %d, %d, %d, %d, %d, 0x%x, %d, %s, %s, %s, (%dx%d)]",
				hashCode(), mKeyFrameId, mActionId, mRouteId,
				mBrushType, mBrushWidth, mBrushColor, mBrushAlpha,
				String.valueOf(mSaved), String.valueOf(mSaving), String.valueOf(mLoading),
				mBitmap == null ? -2 : mBitmap.getWidth(), mBitmap == null ? -2 : mBitmap.getHeight());
	}
}
